package com.lzq.mq.common.constants;

public class NameServerConstants {

    /**
     * 默认的nameserver端口
     */
    public static final Integer DEFAULT_NAMESERVER_PORT = 9090;

    /**
     * 配置文件路径
     */
    public static final String NAME_SERVER_CONFIG_PATH = "/config/nameserver.properties";

    /**
     * 配置文件中的user属性
     */
    public static final String USER_PROPERTY_KEY = "nameserver.user";

    /**
     * 配置文件中的password属性
     */
    public static final String PASSWORD_PROPERTY_KEY = "nameserver.password";

    /**
     * 服务通道的id键值
     */
    public static final String NAMESERVER_CHANNEL_ID = "reqId";

    /**
     * 发送心跳的间隔时间
     */
    public static final long SERVER_HEART_BEAT_INTERVAL_MS = 500;

    /**
     * 服务端心跳超时时间
     */
    public static final long SERVER_HEART_BEAT_TIMEOUT_MS = 10000000;

    /**
     * 心跳超时扫描间隔时间
     */
    public static final long HEART_BEAT_TIMEOUT_SCANNER_RATE_S = 3;
}
